SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.

   PastimesLinux OS.: Technical questions


Previous 10 Next 10 
To: Thomas A Watson who wrote (448)5/12/2017 3:13:31 PM
From: FJB
   of 480
 
Free ebook for the next four hours. packtpub.com

Practical Linux Security Cookbook
As more and more organizations adopt Linux for their networks and servers, the number of security threats grows and grows. As a sysadmin, you'll be the first point of call when hackers threaten your network - and this free eBook will be your bible for building and maintaining a secure Linux system.

Share RecommendKeepReplyMark as Last Read


From: FJB7/4/2017 1:20:14 PM
   of 480
 

github.com

Share RecommendKeepReplyMark as Last Read


From: Thomas A Watson11/10/2018 11:58:42 AM
   of 480
 
where is the mouse on your screen?
In a terminal run mousepos using xdotool

need xdotool installed

sudo apt-get install xdotool

or

watson@xen2[109]xterm -geometry 50x12 -e mousepos

watson@xen2[105]which mousepos
/usr/local/bin/mousepos

watson@xen2[106]
watson@xen2[106]cat `which mousepos`
#!/bin/csh
# /usr/local/bin/mousepos
set c=0
set last=99

while ( 1 )

xdotool getmouselocation --shell >ztmp
sleep .5s

# cat ztmp
set x=`cat ztmp|head -1`
set y=`cat ztmp|head -2|tail -1`
set screen=`cat ztmp|tail -2|head -1`
set window=`cat ztmp|tail -1`

echo $x $y" "$c" " $screen $window
echo ""

if ( $c < $last ) then
@ c++
else
set c=0
endif
end

Share RecommendKeepReplyMark as Last Read


From: Thomas A Watson11/17/2018 12:16:16 PM
1 Recommendation   of 480
 
ubuntu remote desk top.
How To Configure Remote Access To Your Ubuntu Desktop
howtoforge.com

On a local network you can display your linux desktop on a windows machine. you can also control it or run it. I followed the link above instuctions and on Win7 manchine display ubuntu 16.04 unity desktop and could control it in paralell with the the unbuntu machine.

I could not on my linux 14.04 xen2 manchine display unity desktop of xen1 machine. xen2 is fvwm window manager, not unity.

I tried starting nautilus that seems to gnomify my fvwm weirdly. same result.

in linus use remmina.

error in terminal.

]Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
loading channel cliprdr
unable to connect to 192.168.1.118:3389
Error: protocol security negotiation or connection failure
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

nautilus starts with error
watson@xen2[229]nautilus

(nautilus:15767): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

Share RecommendKeepReplyMark as Last Read


From: Thomas A Watson11/30/2018 7:36:22 AM
   of 480
 
Switching from multidisplay to a single display and changing video cards to support new resolution of monitor.

Basic OS of computer.
watson@xen2[22]uname -a
Linux xen2 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linu

This computer was running using a GALAXY MDT Nvidia Geforce GT610 1Gb PCIe card.
The card drove 4 Samsung 1204b monitors of 1600x1200.

I believe I used unity desktop to originally set up the Displays to create a 3200x2400 desktop.
But for working I used fvwm2.

The machine always boots to text mode. Then I start fvwm2 with xinit /usr/bin/fvwm2 or I could start unity
with xinit /usr/bin/unity.

The new monitor is an Acer ET0 Series ET430K IPS 43" LED Monitor IPS 4K UHD HDMI w/ Speaker.

The GT610 does not support 4k 3840 x 2160 resolution. So I choose a Geforce GT 1030
It has a far superior GPU over the GT610, but it is not a cutting edge gaming care. In that I never game, that did not matter to me.

After installing the new vid card and connecting up the monitor linux booted no prob to text mode.
I logged in and xinit /usr/bin/fvwm2 worked ok but the screen res was 12??x10??

I googled all manner of questions about linux ubuntu 16.04 and all I found was gui this and gui that in unity. Well xinit /usr/bin/unity would not come up. There were posts attempting to explain how to set up Xorg config but none really explained anything.

So finally I went to nvidia.com nvidia.com then Drivers Geforce
Did a manual search. I figured out that a 1030 card was a series 10 card in nvidiaeze.
So I menued Geforce, Geforce 10 series, Geforce GT 1030, linux 64-bit, English (US), Recommended Certified


Search...

Linux x64 (AMD64/EM64T) Display Driver


Version 410.78
Release Date Thu Nov 15, 2018
Operating System Linux 64-bit
Language English (US)
File Size 102.94 MB



Download /XFree86/Linux-x86_64/410.78/NVIDIA-Linux-x86_64-410.78.run




*This download includes the NVIDIA display driver and GeForce Experience application. Details for use of this NVIDIA software can be found in the NVIDIA End User License Agreement.

Downloaded NVIDIA-Linux-x86_64-410.78.run

watson@xen2[25]file NVIDIA-Linux-x86_64-410.78.run
NVIDIA-Linux-x86_64-410.78.run: POSIX shell script executable (binary data)

This is Nvidia propriatary and not open source. To me that means it will use all of the power of the card.

Open source is nice but in video drivers, I prefer the companies stuff. It often solves many problems.

So I chmod 777 NVIDIA-Linux-x86_64-410.78.run and ran it. Oh I always create user root and login as root to manage my linux systems. I do not sudo.

The program ran no brain, asked obvious questions and permissions and agree terms. It reported it had created a new xorg config.

Then as me, not root xinit /usr/bin/fvwm2 and all is right with the world.

So I did not have to relearn all about mode lines and xconfig and edit some files some where to get it to work. How many times have I done that in the past? who knows..

I assume unity will work now also, but have not tested it yet.

Share RecommendKeepReplyMark as Last Read


From: Thomas A Watson12/16/2018 7:45:00 PM
   of 480
 

I came across another sysinfor tool for linux. It is like a belarc but more in a sense. it is called hardinfo.
I did sudo apt-get install hardinfo. I am running on ubuntu 16.04 and I bring it up from a terminal in my fvwm2 window manager. Also it work in unity. I expect it is compatible with most linux window managers.

It has numerous sub sections and will also create a web page of all results.

ikiw.homeip.net /xen2/hardinfo_report.html shows a full report. edited to sanitize. passwords etc.

It even cantains some bench marks.

Benchmarks
CPU Blowfish
CPU Blowfish
This Machine3680 MHz2.819
Intel(R) Celeron(R) M processor 1.50GHz(null)26.1876862
PowerPC 740/750 (280.00MHz)(null)172.816713
CPU CryptoHash
CPU CryptoHash
This Machine3680 MHz546.596
CPU Fibonacci
CPU Fibonacci
This Machine3680 MHz1.268
Intel(R) Celeron(R) M processor 1.50GHz(null)8.1375674
PowerPC 740/750 (280.00MHz)(null)58.07682
CPU N-Queens
CPU N-Queens
This Machine3680 MHz4.724
FPU FFT
FPU FFT
This Machine3680 MHz0.747
FPU Raytracing
FPU Raytracing
This Machine3680 MHz3.481
Intel(R) Celeron(R) M processor 1.50GHz(null)40.8816714
PowerPC 740/750 (280.00MHz)(null)161.312647



Share RecommendKeepReplyMark as Last Read


From: Thomas A Watson2/5/2019 11:53:43 AM
   of 480
 
this is a post on some apps that i have found useful.

scrot is a very usefull screen capture utility

In a terminal.

cd to a directory

scrot -s some.filename.jpg

then you use the mouse to define the square to grab and it is saved as some.filename.jpg

no -s and you get the entire desktop.

A useful addon awesome screenshot can capture part or all of a webpage in a browser and then take image and allow some editing in the browser. default saves as png, but you can set to save as jpg.

Share RecommendKeepReplyMark as Last Read


From: Mario :-)2/27/2019 5:09:47 PM
   of 480
 
Speedcrunch - high precision scientific calculator. I love it. It calculates 'on the fly', you don't ever need to finish your entry with <enter> key, saves a click. It is very fast, has more digits that regular calculator and it is loaded with goodies such as formulas, constants.... If you haven't tried it yet, give it a shot.

Also, i'm moving from Manjaro to MX Linux - Debian based, but developers are keep back-porting newer apps so you almost have some kind of semi rolling distro:
- stable Debian
- updated apps
- bunch of very useful tools (like snapshot, create your own install-abe iso from your current system with 3-4 mouse clicks, basically you have exact copy of your system that you can put on another computer...)
- oh, and it does not use systemD (although it is present for compatibility)

Will be back in a half of year or so ;-)

Share RecommendKeepReplyMark as Last Read


From: Thomas A Watson9/3/2019 7:28:42 PM
1 Recommendation   of 480
 
Running x apps on remote system using an ssh tunnel.

SSH X11 Forwarding youtube.com this video explains it all.


on server. this is the computer where x app runs. and displays on the client.

make sure you have xauth

apt list

sudo vi /etc/ssh/ssh_config

verify or edit
ForwardX11 yes
ForwardX11Trusted yes

after save

sudo service ssh restart

ssh stop/waiting
ssh start/running, process 2883


sudo vi /etc/ssh/sshd_config

X11Forwarding yes
X11DisplayOffset 10

after save

sudo service ssh restart

on client starting ssh with X forwarding.

ssh -X right # slowest response

echo $DISPLAY

ssh -X -C -c blowfish-cbc,arcfour right # -C compression -c cyfers blowfish-cbc,arcfour this gives faster response.

ssh -Y right # trusted.


youtube.com how to enable X11 forwarding on linux,

Share RecommendKeepReplyMark as Last ReadRead Replies (1)


To: Thomas A Watson who wrote (460)10/14/2019 11:46:40 PM
From: FJB
   of 480
 
Welcome


The Unix Game is a fun, low-barrier-to-entry programming contest where players solve coding challenges by constructing "pipelines" of UNIX text processing utilities to compute the solution. Press the button below to take a quick tour around the UI:

unixgame.io

Share RecommendKeepReplyMark as Last Read
Previous 10 Next 10