WHY? is it so hard to get Linux to work?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- WHY? is it so hard to get Linux to work?
Re: WHY? is it so hard to get Linux to work?
02-08-2011 8:35 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote cd /etc/usb_modeswitch.d
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Re: WHY? is it so hard to get Linux to work?
02-08-2011 8:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote <censored>
No sitting on the sidelines there Jim, feel free to join in...
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Re: WHY? is it so hard to get Linux to work?
02-08-2011 8:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
copy of the terminal page
> cd /etc/usb_modeswitch.d
> tar -xvf /usr/share/usb_modeswitch/configPack.tar.gz "12d1:1446"
> sed -i -e `s/14ac/14ac,1506/1 "12d1:1446"
bash: s/14ac/14ac,1506/1: No such file or directory
cat: 12d1:1446: No such file or directory
sed: option requires an argument -- 'e'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
--follow-symlinks
follow symlinks when processing in place
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
--posix
disable all GNU extensions.
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
--version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
sed: -e expression #1, char 4: extra characters after command
gerry-Inspiron-2200 gerry #
gerry-Inspiron-2200 gerry # cat "12d1:1446"
cat: 12d1:1446: No such file or directory
Re: WHY? is it so hard to get Linux to work?
02-08-2011 8:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
if you type:
ls -l
it should say:
total 4
-rw-r--r-- 1 root root 306 Feb 26 16:20 12d1:1446
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:11 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
and got
total 32
drwxr-xr-x 2 gerry 4096 2011 -08-02 15:06 Desktop
ditto Documents
ditto Downloads
ditto Music
ditto Pictures
ditto Public
ditto Templates
ditto Videos (with slightly different times on the lines)
Is -I (capital letters) gave Is :command not found
and same for small letter is - i....
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
ls -l /etc/usb_modeswitch.d
Is that easier to read? Commands in Linux are case-sensitive, and usually lower case.
I wanted to check what files are in the /etc/usb_modeswitch.d directory.
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:17 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
1s -1 gives me
1s : command not found
lower case Ls -L etc gives me
total 4
- rw-r- - r - - 1 root root 306 2011 - 02 -26 11:20 12dl:1446
(edited and corrected ) ! ! !
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:21 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Perhaps I should have said:
dir --format=long
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
but should read 12d1:1446 not 12dl ! ! !
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As for the sed command, putting things inside single quotes ' (apostrophe) is just a habit of mine. But ` ("grave accent" as character map calls it) does something totally different.
Anyway, the apostrophes are not needed. So, as root:
cd /etc/usb_modeswitch.d
sed -i -e s/14ac/14ac,1506/ "12d1:1446"
PS: all these USB IDs are in hexadecimal, the only possibilities are digits 0-9 and letters a-f.
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
/etc/usb_modeswitch.d $
sed -i -e etc returned
sed: couldn`t open temporary file ./sedLrgD39: permission denied
Re: WHY? is it so hard to get Linux to work?
02-08-2011 9:54 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- WHY? is it so hard to get Linux to work?