Ubuntu - tlam/Wiki GitHub Wiki
-
Find and kill a zombie process
~$ ps l | grep Z ~$ kill -9 <PPID>
-
Upgrade the current linux distribution from the CLI:
apt-get dist-upgrade
-
Restart GUI from the CLI:
sudo /etc/init.d/gdm restart
-
Install a
.deb
filesudo dpkg -i rabbitmq-server_2.1.0-1_all.deb
-
VM not on the network http://www.howtogeek.com/wiki/Fixing_%22Failed_to_bring_up_eth0%22_in_Ubuntu_Virtual_Machine Check the available eth# in with @ifconfig -a@ and use that eth# in the networking file.
-
X session error log:
/home/tlam/.xsession-errors
-
Private and public key generation https://help.ubuntu.com/community/SSH/OpenSSH/Keys
-
List installed packages
dpkg --get-selections</pre>
-
Codecs not part of the official release https://help.ubuntu.com/community/Medibuntu
-
Reading CBR with Comix if your freshly installed
Comix
cannot readCBR
files.sudo apt-get remove unrar sudo apt-get remove unrar-free sudo apt-get install unrar
-
Completely remove a package and its configuration files
sudo apt-get purge postgresql
-
ssh with port and alias
- In
.bash_profile
, add alias ubuntu='ssh -p 3022 user@localhost' - Reload
.bash_profile
with source.bash_profile
ubuntu
- In
-
scp with port number
scp -P 3022 file.zip tlam@localhost:/home/user
-
List opened deleted files
lsof | grep deleted
-
Check amount of free inodes
df --inodes .
-
Install openconnect:
sudo apt-get install network-manager-openconnect
-
In the top taskbar, click on the network icon(arrow up, arrow down): VPN Connection > Configure VPN ...
- Select Add
- Select VPN, Cisco
- Gateway:
vpn.yournetwork.com
- Label it
Your Network
-
Click on the network icon again, VPN > Your Network
-
Enter your regular auth
For open vpn, use:
sudo openvpn --config client2.ovpn
-
Check if VMware tools is running:
/etc/init.d/vmware-tools status
-
Run VMware tools:
/etc/init.d/vmware-tools start
-
Run VMware tools as a service:
sudo service vmware-tools start
Generate an insecure key with a 2048-bit key length:
openssl genrsa -out server.key 2048
Create a CSR:
openssl req -new -key server.key -out server.csr
References: http://www.geotrust.com/resources/csr/apache2.htm
-
Install SSH
sudo apt-get install openssh-server
-
Upgrade current OS
sudo apt-get update && sudo apt-get upgrade
- Install exim:
sudo apt-get install exim4
- Configure anytime:
sudo dpkg-reconfigure exim4-config
-
Create an email file called
test.email
:Subject: Testing sendmail I am testing sendmail locally.
-
From the terminal:
sendmail [email protected] < test.email