ssh to linux guest/virtual machine running virtualbox

Categories: Linux; Tagged with: ; @ January 23rd, 2016 16:07

Install / Start SSH in your guest Linux

sudo service ssh status

install open-ssh in case it’s not ready in your guest:

sudo apt-get install openssh-server

start the service if the service is stopped.

sudo service ssh start

Setup VirtualBox – port forwarding

virtualbox > edit settings for the guest vm:
network > port forwarding (e.g host 3022 -> guest 22)

SSH to the guest linux

ssh user@loalhost -p 3022

Linux Mint: Modify JAVA HOME for All Users

Categories: Linux; Tagged with: ; @ April 27th, 2014 12:14

Solution A:  Modify /usr/bin/java link

# which java
/usr/bin/java
# java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4ubuntu3)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
# ls -ld /usr/bin/java
lrwxrwxrwx 1 root root 22 Apr 16 21:47 /usr/bin/java -> /etc/alternatives/java
# rm /usr/bin/java
# ln -s /guoliangDev/tools/sun-jdk/jdk1.7.0_55/bin/java /usr/bin/java
# java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Solution B: Modify /etc/profile

#vi /etc/profile

Append:

export JAVA_HOME=/guoliangDev/tools/sun-jdk/jdk1.7.0_55
export PATH=$JAVA_HOME/bin:$PATH

save the file, and

source /etc/proflie

Using aMule to download eMule/ED2K in Linux/ubuntu/Mint

Categories: Linux分享; Tagged with: ; @ March 30th, 2014 21:23

Get a web UI to download ed2k link by following post:

http://ubuntuforums.org/showthread.php?t=327414&s=f1e51c3c8c7ceedfaecac02d8615063b

 

Cannot connect to the Server or Server list is empty:

Get the server.met from: http://www.gruk.org/list.php, replace your server.met;

 

SNAGHTMLa28393

Linux查看及修改时区

Categories: Linux; Tagged with: ; @ December 26th, 2010 23:03

查看当前时区
date –R

修改时区: 调整时区到东八区 – 北京时间 
[root@localhost ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
cp: overwrite `/etc/localtime’? y

Linux: Copy/Rename/Move/Remove Directory – 复制/重命名/移动/删除目录

Categories: Linux; Tagged with: ; @ September 2nd, 2010 17:38

1. Copy 复制:

[root@ip-10-* webapps]# cp -r sourceDir/ /targetDir/ 
//将被复制到targetDir文件夹下 The SourceDir will be found under "targetDir"

2. Rename 重命名:

[root@ip-10-* 20100102update]# mv sourceDir/ newName

3. Move 移动:

mv Source.zip targetDir/

4. 移除整个目录:

[root@ip-10*webapps]# rm -rf Athena_Java/

Older Posts



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.