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
00e2a755
authored
12 years ago
by
Danyi Bence
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://giccero.cloud.ik.bme.hu/cloud
parents
4a508111
11645e31
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
81 additions
and
3 deletions
+81
-3
miscellaneous/context/ubuntu/etc/context/cleanup.sh
+5
-0
miscellaneous/context/ubuntu/etc/context/init.d/00hostname
+8
-0
miscellaneous/context/ubuntu/etc/context/init.d/00sshd
+8
-0
miscellaneous/context/ubuntu/etc/context/init.d/01passwd
+6
-0
miscellaneous/context/ubuntu/etc/context/init.d/02sshfs
+11
-0
miscellaneous/context/ubuntu/etc/context/init.d/03profile
+6
-0
miscellaneous/context/ubuntu/etc/context/init.d/04booturl
+7
-0
miscellaneous/context/ubuntu/etc/context/init.sh
+26
-0
miscellaneous/thinclient/mimeapps.list
+1
-0
miscellaneous/thinclient/rdp
+3
-3
No files found.
miscellaneous/context/ubuntu/etc/context/cleanup.sh
0 → 100755
View file @
00e2a755
#!/bin/bash
#rm -f /etc/ssh/ssh_host_*
stop rsyslog
rm
-fr
/home/cloud/.bash_history /root/.bash_history /var/log/
*
This diff is collapsed.
Click to expand it.
miscellaneous/context/ubuntu/etc/context/init.d/00hostname
0 → 100755
View file @
00e2a755
#!/bin/bash
echo
"En vagyok a
$0
!"
hostname
"
$HOSTNAME
"
echo
"
$HOSTNAME
"
>
/etc/hostname
sed
"s/
\(
127
\.
0
\.
1
\.
1
\)
.*/
\1\t
$HOSTNAME
/"
-i
/etc/hosts
This diff is collapsed.
Click to expand it.
miscellaneous/context/ubuntu/etc/context/init.d/00sshd
0 → 100755
View file @
00e2a755
#!/bin/bash
echo
"En vagyok a
$0
!"
/etc/init.d/ssh stop
dpkg-reconfigure openssh-server
/etc/init.d/ssh start
This diff is collapsed.
Click to expand it.
miscellaneous/context/ubuntu/etc/context/init.d/01passwd
0 → 100755
View file @
00e2a755
#!/bin/bash
echo
"En vagyok a
$0
!"
echo
"
$USER
:
$USERPW
"
| chpasswd
This diff is collapsed.
Click to expand it.
miscellaneous/context/ubuntu/etc/context/init.d/02sshfs
0 → 100755
View file @
00e2a755
#!/bin/bash
echo
"En vagyok a
$0
!"
mkdir
-p
"
$HOME
/.ssh"
echo
"
$SSHPRIV
"
>
$HOME
/.ssh/id_rsa
chmod 600
"
$HOME
/.ssh/id_rsa"
mkdir
"
$HOME
/sshfs"
chown
"
$USER
:
$USER
"
-R
"
$HOME
"
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
This diff is collapsed.
Click to expand it.
miscellaneous/context/ubuntu/etc/context/init.d/03profile
0 → 100755
View file @
00e2a755
#!/bin/bash
echo
"En vagyok a
$0
!"
echo
"export NEPTUN=
$NEPTUN
"
>>
$HOME
/.profile
This diff is collapsed.
Click to expand it.
miscellaneous/context/ubuntu/etc/context/init.d/04booturl
0 → 100755
View file @
00e2a755
#!/bin/bash
echo
"En vagyok a
$0
!"
wget
-q
-O
/dev/null
"
$BOOTURL
"
This diff is collapsed.
Click to expand it.
miscellaneous/context/ubuntu/etc/context/init.sh
0 → 100755
View file @
00e2a755
#!/bin/bash
export
BASEDIR
=
$(
dirname
$0
)
export
USER
=
"cloud"
export
HOME
=
$(
awk
-F
:
-v
u
=
$USER
'$1==u{print $6}'
/etc/passwd
)
cd
"
$BASEDIR
"
mount
-t
iso9660 /dev/cdrom1
"
$BASEDIR
/mnt"
2> /dev/null
if
[
$?
-eq
0
-a
-f
"
$BASEDIR
/firstrun"
-a
-f
"
$BASEDIR
/mnt/context.sh"
]
;
then
.
"
$BASEDIR
/mnt/context.sh"
# hogy tudom kiexportalni ennel szebben ezeket a valtozokat?
eval
`
grep
-o
'^[a-zA-Z0-9]\+='
"
$BASEDIR
/mnt/context.sh"
|
while
read
x
;
do
echo export
${
x
%=
}
;
done
`
run-parts
"
$BASEDIR
/init.d"
rm
"
$BASEDIR
/firstrun"
else
echo
"mar korabban lefutott!"
fi
umount /dev/cdrom1 2>/dev/null
eject /dev/cdrom1
exit
0
This diff is collapsed.
Click to expand it.
miscellaneous/thinclient/mimeapps.list
View file @
00e2a755
...
...
@@ -3,6 +3,7 @@
application/nx-session=gedit.desktop;
x-scheme-handler/rdp=rdp.desktop
x-scheme-handler/nx=rdp.desktop
x-scheme-handler/shell=rdp.desktop
[Default Applications]
text/html=chromium-browser.desktop
...
...
This diff is collapsed.
Click to expand it.
miscellaneous/thinclient/rdp
.sh
→
miscellaneous/thinclient/rdp
View file @
00e2a755
...
...
@@ -127,11 +127,11 @@ nx)
A
/usr/NX/bin/nxclient
--session
$f
;;
s
sh
)
s
hell
)
#/usr/NX/bin/nxclient --dialog ok --message "Jelszó: $password" &
rm /home/user/.ssh/known_hosts
#
rm /home/user/.ssh/known_hosts
#rxvt-unicode -e sh -c "ssh $user@$host -p$port; sleep 2"
rxvt-unicode
-e
sh
-c
"sshpass -p "
$password
" ssh -o StrictHostKeyChecking=no
$user
@
$host
-p
$port
; sleep 2
"
gnome-terminal
-e
"sshpass -p "
$password
" ssh -o StrictHostKeyChecking=no
$user
@
$host
-p
$port
"
;;
*
)
xmessage
"
$scheme
is not supported."
...
...
This diff is collapsed.
Click to expand it.
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