Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
99d8341c
authored
Feb 28, 2013
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
#77
#46
parent
ba52adbb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
miscellaneous/context/ubuntu/etc/context/cleanup.sh
+1
-1
miscellaneous/context/ubuntu/etc/context/init.d/02sshfs
+8
-2
miscellaneous/context/ubuntu/etc/context/init.d/04booturl
+2
-1
No files found.
miscellaneous/context/ubuntu/etc/context/cleanup.sh
View file @
99d8341c
...
@@ -10,4 +10,4 @@ sed -i 's/^<volume user=.*//' /etc/security/pam_mount.conf.xml
...
@@ -10,4 +10,4 @@ sed -i 's/^<volume user=.*//' /etc/security/pam_mount.conf.xml
rm
-rf
~cloud/
{
.bash_history,.ssh/id_rsa
}
rm
-rf
~cloud/
{
.bash_history,.ssh/id_rsa
}
rm
-rf
~root/
{
.bash_history
}
rm
-rf
~root/
{
.bash_history
}
rm
-rf
/etc/ssh/ssh_host_
*
rm
-rf
/etc/ssh/ssh_host_
*
rm
-rf
/usr/NX/home/nx/.ssh/known_hosts
miscellaneous/context/ubuntu/etc/context/init.d/02sshfs
View file @
99d8341c
...
@@ -5,8 +5,14 @@ echo "En vagyok a $0 !"
...
@@ -5,8 +5,14 @@ echo "En vagyok a $0 !"
mkdir
-p
"
$HOME
/.ssh"
mkdir
-p
"
$HOME
/.ssh"
echo
"
$SSHPRIV
"
>
$HOME
/.ssh/id_rsa
echo
"
$SSHPRIV
"
>
$HOME
/.ssh/id_rsa
chmod 600
"
$HOME
/.ssh/id_rsa"
chmod 600
"
$HOME
/.ssh/id_rsa"
echo
"
$SSHPUB
"
>>
"
$HOME
/.ssh/authorized_keys"
mkdir
"
$HOME
/sshfs"
mkdir
"
$HOME
/sshfs"
chown
"
$USER
:
$USER
"
-R
"
$HOME
"
chown
"
$USER
:
$USER
"
-R
"
$HOME
"
sed
-i
's/^<volume user=.*//'
/etc/security/pam_mount.conf.xml
sed
-i
's/^sshfs.*//'
/etc/fstab
sed
-i
"s/^
\(
<
\/
pam_mount>.*
\)
/<volume user=
\"
$USER
\"
fstype=
\"
fuse
\"
path=
\"
sshfs#
${
NEPTUN
}
@
${
SERVER
}
:home
\"
mountpoint=
\"
~
\/
sshfs
\"
options=
\"
nonempty,reconnect,StrictHostKeyChecking=no
\"
\/
>
\n\1
/"
/etc/security/pam_mount.conf.xml
cat
>>
/etc/fstab
<<
END
sshfs#
${
NEPTUN
}
@
${
SERVER
}
:home
$HOME
/sshfs fuse defaults,idmap=user,reconnect,_netdev,uid=1000,gid=1000,allow_other,StrictHostKeyChecking=no,IdentityFile=
$HOME
/.ssh/id_rsa 0 0
END
mount
"
$HOME
/sshfs"
miscellaneous/context/ubuntu/etc/context/init.d/04booturl
View file @
99d8341c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
echo
"En vagyok a
$0
!"
echo
"En vagyok a
$0
!"
wget
-q
-O
/dev/null
"
$BOOTURL
"
(
while
!
wget
-T
2
-t
1
-q
-O
/dev/null
"
$BOOTURL
"
;
do
sleep 5
;
done
)
&
disown
$!
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment