[00:08] sixil, are you looking to permanently delete it, or move it to trash? [00:08] Trash. [00:10] You could make an alias in your ~/.bashrc file that goes like this: alias=trash "mv %s ~/.local/share/Trash/ [00:11] Then typing "trash would move it to your trashbin [00:12] Has to be a shell script. Never scripted in my life (thankfully i've programmed before) but I understand the concept of making an alias and then move whatever the argument is into the trash location. [00:12] Sorry, forgot the closing quotes [00:12] Well, you could create a script doing the same thing [00:13] Alright. [00:13] Start in with "#! /bin/sh" and on the next line put the 'mv' commands [00:13] Not #!/bin/bash? [00:14] Then set the script as executable. You can either add where the script is to your path or as root set it in /usr/bin. [00:15] You can use bash or sh, it's not important which. === david is now known as Guest77441 [00:15] "sh" is just more common [00:15] No difference I assume then, heh. [00:15] Alright. [00:15] Less letters to type... ;-) [00:15] Haha, I guess. :) === Guest77441 is now known as t3514 [00:16] Okay, so all I put in is the, mv "%s ~/.local/share/Trash/" and that's it? [00:17] Thing is, if you put it under /usr/bin, you'll have to explicitly type the path to your user trash, as in /home/USER/.local/share/Trash/ [00:18] Would it be USER or $USER? [00:18] More than likely I'm going to put it into the /usr/bin directory to make it a global script. [00:19] Sorry, &USER I think is right, you'll have to experiment. Been many years since I wrote a script. [00:19] That's $USER, boy, I should learn to type someday... [00:20] Haha, trust me, I've had worse days. [00:21] As a suggestion, I'd find a file and try the command from the terminal first, to make sure it places the file in the right Trash. [00:21] Working on a helpdesk and typing "Hello, how can I help you?" when I'm not looking turned into "kr;;p/j[e vsm O jr;[ upi" lol [00:21] Alright, lemme quickly write this up. [00:21] LOL! I know the feeling! [00:22] mv "/home/$USER/.local/share/Trash/" So, quotes are in the right place and such? [00:23] I don't think you'll need the quotes unless the filename has a space in it. And in scripting I think you can use the single quote. [00:23] Also, if I wanted to restore said file from the CLI, is there any way I can make sure it returns to its original location? [00:24] I'm trying it right now in a terminal to see if it goes to the right place. [00:24] Well, would it still be best practice to keep the quotes or just remove them? [00:24] Alright man. :) [00:24] Lemme get coffee. [00:24] Coffee = code. [00:24] Return it? Hmm... probably, but I don't know how that works. [00:25] I read something somewhere about metadata? [00:25] One sec. [00:28] Okay sixil, I tried it from a terminal, and while it moves the file to the Trash, it ends up causing Dolphin to hang if you try to view trash, so something isn't being done properly. [00:29] Hm. [00:30] maybe the path should be: /home/$USER/.local/share/Trash/files/ ? [00:30] I've trashed a file normally, to see how Dolphin does it, and try to figure out what else might need to be done. [00:32] Try changing the path to that path I quoted. [00:32] Might do something. [00:33] It seems Dolphin creates a "Restore" metadata file in the other folder, /info, and if it's missing then Dolphin hangs. And yes, the deleted file itself goes into /Trash/files [00:34] You'd probably have to create a script that also generates the info file, just to keep Dolphin or any other file manager happy. [00:34] Well, that's kinda good haha. [00:34] I need to create a restore script too! [00:34] :p [00:35] Hm, for some reason I can't even save this .sh file into /usr/bin [00:35] Not root I guess. [00:35] I'm curious if there's another CLI command that would do the same already, something that basically does what a file manager does from the command line. [00:39] I am assuming that if I put my username into the "root" group, I need to log out and log back in to make the settings live in Kubuntu? [00:40] Better to use 'sudo' than change group permissions, it's easier and more secure. [00:42] Okay. [00:42] Do I need to log off and on to make the changes effective? [00:42] You shouldn't. [00:44] You will have to set it executable though. [00:44] Yeah I'll chmod it [00:44] Yep. [00:45] You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again. [00:45] Ugh [00:47] When I have to write something that needs root privledges, I do it in a termnal with 'sudo nano /usr/bin/somefilename', it asks for my passwordto start, then I make whatever changes and just save the file. [00:48] I was just using a text editor [00:48] lol [00:49] Okay I'm using GNU nano [00:49] I've written the script [00:49] You can, but start the text editor from the terminal with something like "kdesudo kwrite &' [00:49] ...and to save? lol [00:50] Oh! [00:51] Do I save it as del or del.sh? [00:51] I'll assume .sh! [00:52] That will start the text editor already with root privledges, so you can save the file wherever you want. === Vito is now known as Vito_away [00:53] I would just name it 'del', that way you won't need to remember the '.sh' part. You'll see most scripts in /usr/bin don't have extensions. === Vito_away is now known as Vito === Vito is now known as Vito_away [00:55] Do you need to be able to find the file with Dolphin? [00:55] bash: /usr/bin/del: Permission denied lol [00:55] chmod a+x /usr/bin/del [00:56] Operation not permitted. [00:56] As ironic as this sounds. [00:56] I love Linux. [00:56] sudo chmod a+x /usr.bin/del [00:56] sudo chmod a+x /usr/bin/del [00:56] Works like a charm. [00:56] Sorry... [00:57] Do you need to be able to read/restore from Dolphin? [00:57] All CLI. [00:58] Then perhaps it would be better to create a hidden directory in the user's folder for the trashed files, rather than use Dolphin's trash. [00:58] Well, I think that this script should be universal. [00:59] Although, it should be cli, there is the option to also use this on all bash shell linux's. [00:59] Limiting it to just Kubuntu would be bad of me, lol. [01:00] Then I think the idea would be to add to the script the ability to create a folder for it to use, and test if it's there before it bins something. Know what I mean? [01:01] That would make it universal, because the script would take care of it's own housekeeping. [01:02] Sure. [01:03] Well I'm in a worse state. [01:03] mv: missing destination file operand after `/home/sixil/.local/share/Trash/files' [01:03] Try `mv --help' for more information. [01:03] That, I'm afraid, is beyond what I could even try to help with here. I suggest looking around online for some scripting tutorials. What you want to do is surely possible, it's just getting the commands right. [01:04] Try adding "/" to the end of the destination line, so it uses the default filename. "files" is the folder, and it sees you're trying to replace a folder with a file. [01:05] Edit the script so the destination is /home/sixil/.local/share/Trash/files/ [01:05] Gotcha [01:06] mv: missing destination file operand after `/home/sixil/.local/share/Trash/files/' [01:07] hello [01:07] Hmm? What does the script look like? The whole thing? [01:07] mv "/home/$USER/.local/share/Trash/files/" [01:07] angelforget: Hello. [01:07] will kubuntu 12.10 get KDE 4.9.3? [01:08] Change it to 'mv %s /home/$USER/.local/share/Trash/files/ [01:09] Alright, done that. [01:09] Work now? [01:09] Gotta close the quotes i think [01:09] lol [01:10] There shouldn't be quotes in the script, I just place them there to show what should be written. [01:11] mv: cannot stat `%s': No such file or directory [01:11] And I always forget to close them. [01:11] lol [01:11] You're not the only one. :P [01:11] Okay, need to find out how to do variable expansion in bash, hang on... [01:11] Writing C# and not putting a ";" in certain places really kills. [01:13] Looking at the bash manpage now... [01:14] Roger. [01:23] Try changing'%s to $f, I think I got the substitution character wrong, it should be $. [01:24] Well, it says missing destination file operand [01:25] mv $f /home/$USER/.local/share/Trash/files/ [01:25] Hmm? Trying on the command line... [01:27] Strange, I don't get an error when I run it on the command line that way... [01:28] I think it's the replacement variable, "$f", I probably still have it wrong. Of all the luck, you get an inexperienced bloke like me trying to help. ;p [01:30] Well [01:30] Hold on [01:31] until [ "$#" = "0" ];do [01:32] mv $1 "$HOME/.local/share/Trash/files" [01:32] shift [01:32] done [01:36] Is that working? [01:37] Yes [01:37] It's moving the file. [01:37] Great! [01:37] I think that $1 made the difference. [01:38] Yep, I had the variable wrong. === silence is now known as Guest66748 [01:38] Wonder how I could jazz this code up now. [01:39] Hmm. [01:40] Any way to return the name of the file name in an echo line? [01:40] For example [01:40] Well, I'm thinking you want to make it portable, distro independent, so having it create it's own trash folder would give it that. [01:40] "The file: bla.jpg, has been moved"? [01:41] Yeah, should be something like 'echo $1 "has been moved"' [01:42] Haha, you would think. [01:42] Just says "has been moved" [01:44] If memory serves me (which I wouldn't bank on) the variable $1 should still contain the filename until it's replaced. You may have to have it all on one line though, like 'mv $1 /blah/blah && echo $1 "has been moved"' [01:45] I'll try. [01:45] Or it may have to have the variable contained, I think it's with braces {} [01:46] && worked [01:47] Lol [01:47] Why are all Linux gurus bearded men that look like Captain Birds Eye? [01:48] !ot [01:48] #kubuntu is the official Kubuntu support channel, for all Kubuntu-related support questions. Please use #kubuntu-offtopic for general chatter. Thanks! [01:48] I think it's a requirement. [01:49] Looks like it. [01:50] Now the only thing to do.. [01:50] Grow a beard? [01:50] Is to create a restore script that will restore the file to it's original location. [01:51] lets get back on topic [01:52] That will be harder, because you need some way of recording it's original path. [01:52] I'm assuming that can be achieved using meta data [01:53] If you have any files you trashed with Dolphin, look at the "info" folder and you can see how the GUI does it. [01:53] Each deleted file has a corresponding "restore info" file. [01:55] It stores the deletion date and original path, with a ".trashinfo" extension. [01:55] Ah [01:55] Hold on [01:55] You're right [01:55] I need to delete this file into a specific folder [01:55] Not the global trash! === kubuntu is now known as Guest22127 [01:56] But into a folder called dustbin [01:56] hdlooooooooooooooooooooooo [01:57] So can I modify the path to make a folder then? [01:57] Or do I need to specify mkdir? [01:58] Well, my thought was to use an "if... then... else" function to test for a default folder for the dustbin, and it it doesn't exist, create it with a "mkdir", if it does, just use it. === ubuntu is now known as Guest56207 [02:00] So. [02:00] If [condition] right? [02:00] broken down with ";" [02:01] if [condition]; then [mv... bla]; else mkdir bla && mv.. bla [02:01] Yeah, but don't ask me how it would go, I just don't honestly know. Many of the scripts in /etc use if-then routines, perhaps look at some of them to get an idea of syntax. [02:02] Hmm [02:02] Surely if there is a directory using mkdir, it'll ignore it no? [02:03] Also, I'm assuming 'readlink' just reads the path? [02:04] Well, I think the first thing to do would be test for the directory, see if it exists. Sort of: "if exist ~/.dustbin, then "", else mkdir ~/.dustbin". That way it checks for the existence first, and if it's there, it bypasses the mkdir and runs the rest. [02:07] That's why I suggested checking scripts in /etc, there's lot's of startup services that check for existence of files before they execute, there should be plenty of examples in the /etc scripts to get ideas from. [02:10] Take a look at "/etc/profile" [02:12] Hup, supper is calling me. Gotta run, but I'll be back later. Really interested in how you make out sixil. [02:13] Alright man. [02:13] Thanks for the help dude. [02:13] Will you be here for a while yet? [02:13] All night dude. [02:13] Haha [02:13] Alright, chat at ya later. [02:14] Alright. [02:14] I'll hold off until you're back. :P [02:39] if i wanted to change the size of the text in the windows, dialog boxes etc., where would i go to do that? [02:40] System Settings -> Application Appearance -> Fonts [02:41] omw thanks [02:44] that worked! thanks so much! everything was like size 9. couldn't read a thing. now size 14 and i can read it [02:46] um trying to add a printer but that text is still like size 9. i cant read it to see which print driver to select. how do i fix that? [02:51] I don't know, I haven't had a printer in years [02:52] i'm squinting hard at the dialog and it looks like the printer is not in the list. can anyone help? [02:52] tsimpson_, thanks for the help you have given. every little bit helps [02:54] the printer was originally there and working except paused, i got it unpaused and it said it could not find the printer (URI?). so i removed it to re-add it. now i think i messed up and am in trouble. help?! [03:00] i'll have to come back to this later. thanks again bbl [05:28] hi everyone , for some reason I need to open by konsole command, a browser window on a specific url in full screen mode, I know how to do it in normal way , but not for the fullscreen mode someone can help me ? [05:36] 有人知道QT中文方面的irc频道吗 === magespawn_ is now known as magespawn [05:38] well I found kstart which should do all I need ... [05:42] !ch | hechao [05:42] hechao: The Swiss !LoCo team can be found in #ubuntu-ch (please speak English there) - Deutschsprachiger Ubuntu Support in #ubuntu-de - Aide Ubuntu en français dans #ubuntu-fr - Supporto Ubuntu in Italiano in #ubuntu-it [05:42] !cn [05:42] 如欲獲得中文的協助,請輸入 /join #ubuntu-cn 或 /join #ubuntu-tw [05:46] I'm Sorry,Thanks [06:17] Still here sixil? [06:57] I've lost the icon I had in the tray for KDE IM Contacts, kubuntu 12.10, kde 4.9.3, I can't seem to remember the name of that binary [06:57] could it be /usr/lib/x86_64-linux-gnu/indicator-application-service ? [06:59] hmm, it must have something to do with telepathy [07:00] CosmicB: you probably mean "instant messaging presence" [07:00] Tm_T mabye (?) [07:00] the im client works, but I don't have the icon in the tray [07:01] CosmicB: rightclick systray -> system tray settings -> display [07:01] and enable that (: [07:02] ah Tm_T THNX, that worked [07:03] It happened when I switched default monitor (got two of them) [07:27] hello [07:27] what version of KDE have kubuntu daily ? === jd is now known as Guest49025 [07:56] hello i am a noob at KDE ..I have been using XFCE,LXDE,GNOME,etc but wanted to try KDE out.On a fresh install there is a big box on the left side of the screen where i think i am abl to put shortcuts to applications,but i accidentally closed it or removed it.How do I get that back? [07:58] slaptman: You can create/edit shortcuts under System Settings -> Shortcuts and Gestures. [07:59] thank you === MmikeRMRM is now known as Mmike === david is now known as Guest62687 === ben___ is now known as cluelesscoder [08:44] hello, anyone around? [08:45] I just installed Kubuntu and it has been a frustrating experience (coming from Linux Mint KDE 13) [08:47] guess not, ok bye, time for bed [08:47] !patience | cluelesscoder [08:47] cluelesscoder: Don't feel ignored and repeat your question quickly; if nobody knows your answer, nobody will answer you. You can search https://help.ubuntu.com/ http://www.ubuntuforums.org/ or http://www.kubuntuforums.net/ while you wait. [08:47] yeah, it's too late [08:48] I've gotta hit the hay [08:48] might be back later [08:48] the issues seem to have resolved; probably due to not formatting my /home partition when I came over from the Mint version [08:49] now I'm wondering why my computer refuses to boot from my LiveUSB... I guess maybe because it recognizes that I already have Kubuntu installed? === Guest62687 is now known as david85 === david85 is now known as thekleine === yofel_ is now known as yofel === Tonio_ is now known as Tonio_aw === pjoe_afk is now known as pjoe === pjoe is now known as pjoe_dj === bazhang_ is now known as bazhang === jd is now known as Guest2646 === MmikeDOMA is now known as Mmike [10:13] How can I make dolphin be in 'detailed' view by default? [10:44] I seem to have managed to associate files with Kate somehow - for example in my firefox downloads tab, when I try to open containing directory it will open Kate and display an error popup [10:44] anyone know how to fix this? [10:48] lol ok, fixed it [11:16] 5 [12:52] Hey all [12:59] greetings and salutations [13:00] 'morning [13:00] close enough :) === cryptfu_ is now known as Guest22096 === Tonio_aw is now known as Tonio_ [13:47] I am having problems with process /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/ :0.Xauth -nolisten tcp vt7 getting up to 100% frequently. It seems related to Rhythmbox and or EasyTag. When using Rhythmbox if I alter the mp3 tags I see this process spike. If I use EasyTag it always spikes and the system gets slow. [13:54] I have the same problem with deluge-gtk === Kvaks_ is now known as Kvaks [13:56] I don't have a solution, though. Other than restarting the application, which helps for a while. === spawn[dead] is now known as spawn57 [14:09] Kvaks: Yea, that is what I do, sometimes log-out/in === spawn57 is now known as spawn[dead] === spawn[dead] is now known as spawn57 [15:25] Hi for all === liot is now known as liot_absent === Vito_away is now known as Vito === Tonio_ is now known as Tonio_aw [16:04] Hi, is it not possible to set up a custom partition table with encrypted LVM or LVM? [16:04] from the standard disk that is [16:16] i have gpg-agent running, still 'debuild -S' continues prompting for the gpg key becuase it asks twice fot the gpg key, can anyone clarify? === pjoe_dj is now known as pjoe_afk === spawn57 is now known as spawn[dead] [17:03] Does kubuntu come with a VNC server which can perform reverse connects? [17:07] ManDay: reverse connects? [17:08] Tm_T: Where you (who shares your desktop) can initiate the connection [17:08] (for example when you, who you want to share the desktop, are behind a firewall) [17:09] otherwise, I'll just get x11vnc [17:37] I get a popup for every notification, and I wish they only were shown at the system tray "i" menu. I've selected "Tray icons only" at system_settings->Notifications->Other Notifications [17:37] what am I missing? [17:43] hiya [17:50] hmm at least I see now that the popups can be dragged arround, so I can place them at a zone where they do not anoy me... [17:54] anyone else having dolphin freeze when maximized? [17:54] think it was after the last update [17:54] 12.04 [17:57] sorry no it was just my /etc/fstab [17:58] Guillem_: other programs might still send standard notifications, for most KDE programs you have to deselect them in the Settings > Configure Notifications menu === Catbuntu is now known as Katbuntu [18:18] hi, how can I relaunch input actions daemon without loggout out? [18:21] hi [18:21] how i can reinstal kde plasm? [18:21] some1 can tell me? [18:23] another prob., akonadi isn't working, seems it cannot connect to dbus (with backports) [18:24] startx not work [18:25] byrk0ff: state the message [18:25] (the error) [18:26] the problem is on my side, because the uninstall mysql and with it the packets which are responsible for kde plasma [18:27] [; [18:29] no way: mysql and kde plasma are quite different things [18:32] kde plasma is on top on xorg and kde, anyway have to go now :( [18:32] I know, but when you uninstall kde fell [18:40] Good evening [18:43] Hi lordievader. [18:43] Hey Katbuntu, how are you doing? [18:44] Asking if FreePascal is better than GPC :P [18:44] I want to program in old languages like Pascal or ADA! [18:44] Katbuntu: Ohh, cannot help you there, sorry. [18:44] haha [18:46] Katbuntu, try fp-ide + fp-compiler >> http://fusharblog.com/installing-free-pascal-in-ubuntu/ [18:46] I'm installing it. [18:46] fp-ide looks very turbo-pascal-ish :P [18:46] oooooooooooooooooooooooooooohhhhhhhhhhhhhh sweet memories [18:47] I also downloaded Lazarus. [18:47] That is also a good idea [18:47] No, it isn't haha [18:47] It's very Delphi-ish... [18:47] I am not a pascal programmer [18:47] I preffer fp-ide, it's sweetie. [18:48] *sweet [18:48] And for ADA there's GNAT, although I never programmed with ADA... Never, never! [18:48] I have a Turbo-Pascal book of my mum. === Tonio_aw is now known as Tonio_ [19:22] Has anyone used telepathy-raika? [20:23] Bbye === ronnoc_ is now known as ronnoc === marco is now known as Guest71666 === Sentynel- is now known as sentynel === sentynel is now known as Sentynel [22:15] Hi [22:42] so... is kubuntu supposed to drive all 4 cores to 100% and lock up the system when copying files? [23:04] hello world [23:14] Hello, could someone help me about this one : http://pastebin.ca/2257645 how can i compile it without problem ?? === sevenhill_ is now known as sevenhill [23:51] Hi, I'm trying to replace KDM with a login script that automates login for a multi-user setup [23:54] anyone have deep understanding of KDM or Xsession?